home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / acctcon.z / acctcon
Encoding:
Text File  |  2002-10-03  |  8.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4. aaaaccccccccttttccccoooonnnn((((1111MMMM))))                                                        aaaaccccccccttttccccoooonnnn((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn, _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_1111, _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_2222 - connect-time accounting
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_aaaa_cccc_cccc_tttt_////_aaaa_cccc_cccc_tttt_cccc_oooo_nnnn [_o_p_t_i_o_n_s]
  13.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_aaaa_cccc_cccc_tttt_////_aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_1111 [_o_p_t_i_o_n_s]
  14.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_aaaa_cccc_cccc_tttt_////_aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_2222
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn converts a sequence of login/logoff records to total accounting
  18.      records (see the _tttt_aaaa_cccc_cccc_tttt format in _aaaa_cccc_cccc_tttt(4)).  Login/logoff records are read
  19.      from standard input.  The file _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_wwww_tttt_mmmm_pppp is usually the source of the
  20.      login/logoff records; however, because it may contain corrupted records
  21.      or system date changes, it should first be fixed using _wwww_tttt_mmmm_pppp_ffff_iiii_xxxx.  The
  22.      fixed version of file _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_wwww_tttt_mmmm_pppp can then be redirected to _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn.
  23.      The _tttt_aaaa_cccc_cccc_tttt records are written to standard output.  Here are the options
  24.      for _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn:
  25.  
  26.      _----_llll _f_i_l_e   _f_i_l_e is created to contain a summary of line usage showing line
  27.                name, number of minutes used, percentage of total elapsed time
  28.                used, number of sessions charged, number of logins, and number
  29.                of logoffs.  This file helps track line usage, identify bad
  30.                lines, and find software and hardware oddities.  Hangup,
  31.                termination of _llll_oooo_gggg_iiii_nnnn(1), and termination of the login shell
  32.                each generate logoff records, so that the number of logoffs is
  33.                often three to four times the number of sessions.  See _iiii_nnnn_iiii_tttt(1M)
  34.                and _uuuu_tttt_mmmm_pppp(4).
  35.  
  36.      _----_oooo _f_i_l_e   _f_i_l_e is filled with an overall record for the accounting
  37.                period, giving starting time, ending time, number of reboots,
  38.                and number of date changes.
  39.  
  40.      _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn is a combination of the programs _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_1111 and _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_2222.  _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_1111
  41.      converts login/logoff records, taken from the fixed _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_wwww_tttt_mmmm_pppp file,
  42.      to ASCII output.  _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_2222 reads the ASCII records produced by _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_1111
  43.      and converts them to _tttt_aaaa_cccc_cccc_tttt records.  _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_1111 can be used with the _----_llll and
  44.      _----_oooo options, described above, as well as with the following options:
  45.  
  46.      _----_pppp        Print input only, showing line name, login name, and time (in
  47.                both numeric and date/time formats).
  48.  
  49.      _----_tttt        _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_1111 maintains a list of lines on which users are logged
  50.                in.  When it reaches the end of its input, it emits a session
  51.                record for each line that still appears to be active.  It
  52.                normally assumes that its input is a current file, so that it
  53.                uses the current time as the ending time for each session still
  54.                in progress.  The _----_tttt flag causes it to use, instead, the last
  55.                time found in its input, thus assuring reasonable and
  56.                repeatable numbers for noncurrent files.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. aaaaccccccccttttccccoooonnnn((((1111MMMM))))                                                        aaaaccccccccttttccccoooonnnn((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_1111 and _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn check the environment variable _A_C_C_T__A__T_S_I_Z_E to
  75.      figure out the maximum number of login lines that it might need to
  76.      report.  _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn checks the environment variable _A_C_C_T__A__U_S_I_Z_E to figure
  77.      out the maximum number of distinct login names it might need to report.
  78.  
  79. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  80.      The _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn command is typically used as follows:
  81.  
  82.           _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn _----_llll _llll_iiii_nnnn_eeee_uuuu_ssss_eeee _----_oooo _rrrr_eeee_bbbb_oooo_oooo_tttt_ssss _<<<< _tttt_mmmm_pppp_wwww_tttt_mmmm_pppp _>>>> _cccc_tttt_aaaa_cccc_cccc_tttt
  83.  
  84.      The _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_1111 and _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_2222 commands are typically used as follows:
  85.  
  86.           _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_1111 _----_llll _llll_iiii_nnnn_eeee_uuuu_ssss_eeee _----_oooo _rrrr_eeee_bbbb_oooo_oooo_tttt_ssss _<<<< _tttt_mmmm_pppp_wwww_tttt_mmmm_pppp _|||| _ssss_oooo_rrrr_tttt _++++_1111_nnnn _++++_2222 _>>>> _cccc_tttt_mmmm_pppp
  87.           _aaaa_cccc_cccc_tttt_cccc_oooo_nnnn_2222 _<<<< _cccc_tttt_mmmm_pppp _>>>> _cccc_tttt_aaaa_cccc_cccc_tttt
  88.  
  89.  
  90. FFFFIIIILLLLEEEESSSS
  91.      _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_wwww_tttt_mmmm_pppp
  92.  
  93. RRRREEEEFFFFEEEERRRREEEENNNNCCCCEEEESSSS
  94.      acct(1M), acctcms(1M), acctcom(1), acctmerg(1M), acctprc(1M), acctsh(1M),
  95.      fwtmp(1M), init(1M), login(1), runacct(1M), acct(2), acct(4), utmp(4).
  96.  
  97. NNNNOOOOTTTTIIIICCCCEEEESSSS
  98.      The line-usage report is confused by date changes.  Use _wwww_tttt_mmmm_pppp_ffff_iiii_xxxx (see
  99.      _ffff_wwww_tttt_mmmm_pppp(1M)), with the _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_wwww_tttt_mmmm_pppp file as an argument, to correct this
  100.      situation.
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.